package com.example.message_queue;

import com.example.message_queue.mqserver.BrokerServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.io.IOException;

@SpringBootApplication
public class MessageQueueApplication {
    public static ConfigurableApplicationContext  context;
    public static void main(String[] args) throws IOException {
        context=SpringApplication.run(MessageQueueApplication.class, args);
        BrokerServer brokerServer = new BrokerServer(9090);
        brokerServer.start();
    }

}
